﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace practice_TernaryExpression
{
    enum Sex
    {
        male,
        female
    }

    struct Person
    {
        public string name;
        public int age;
        public char sex;
    }
    internal class Program
    {
        static void Main(string[] args)
        {
            ////三元表达式

            //int mathScore = Convert.ToInt32(Console.ReadLine());
            //bool pass = mathScore >= 60 ? true : false;
            //if (pass)
            //{
            //    Console.WriteLine("及格! ");
            //}
            //else
            //{
            //    Console.WriteLine("不及格!");
            //}

            //int num = Convert.ToInt32(Console.ReadLine());
            //string res = (num % 2 == 0) ? "偶数" : "奇数";
            //Console.WriteLine(res);

            //int a1 = Convert.ToInt32(Console.ReadLine());
            //int a2 = Convert.ToInt32(Console.ReadLine());
            //int max = a1 > a2 ? a1 : a2;
            //Console.WriteLine(max);

            //int a1 = Convert.ToInt32(Console.ReadLine());
            //int a2 = Convert.ToInt32(Console.ReadLine());
            //string res = a1 > a2 ? "大于" : "小于";
            //Console.WriteLine(res = a1 == a2 ? "等于" : res);

            ////enum枚举类型

            //Sex male = Sex.male;
            //Console.WriteLine((int)male);

            ////struct 结构体
            //Person person = new Person();
            //person.name = "张三";
            //person.age = 18;
            //person.sex = '男';

            //Person person1 = new Person();
            //person1.name = "小兰";
            //person1.age = 16;
            //person1.sex = '女';

            //Console.WriteLine($"姓名:{person.name},性别:{person.sex},年龄:{person.age}");
            //Console.WriteLine($"姓名:{person1.name},性别:{person1.sex},年龄:{person1.age}");



            Console.ReadKey();
        }
    }
}
